package com.huarun;

import com.huarun.common.util.Constant;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//@Import(FdfsClientConfig.class) //fastfds
//@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING) //fastfds
@MapperScan("com.huarun.module.*.dao")
@EnableEncryptableProperties
@EnableSwagger2
@SpringBootApplication
@ServletComponentScan
public class HuarunApplication {

	public static void main(String[] args) {
		System.setProperty("jasypt.encryptor.password", Constant.JASYPT_ENCRYPTOR_PASSWORD);
		SpringApplication.run(HuarunApplication.class, args);
	}

}
